package yl.hs.bmipfull.daos.system;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import yl.hs.bmipfull.daos.BaseDao;
import yl.hs.bmipfull.pojo.system.SearchViewEntity;

import java.util.List;

/*
 * ISearchViewDao
 * @category
 * @author 谢景广
 * @date 2021-12-02
 */
@Repository
public interface ISearchViewDao extends BaseDao<SearchViewEntity> {

    /***
     * 根据用户标识获取用户的所有视图
     * @param userSN 用户标识
     * @return 视图信息列表
     */
    List<SearchViewEntity> queryQueryViews(@Param("userSN")String userSN);

    /**
     * 获取当前用户此功能的默认视图
     * @param menuSN 菜单标识
     * @param userSN 用户标识
     * @return
     */
    SearchViewEntity findMenuDefaultView(@Param("menuSN")String menuSN,@Param("userSN")String userSN);

    Integer deleteBySN(@Param("viewSN")String viewSN);
}
